import os
import numpy as np


Songs_path = r'E:\车载歌曲'

k = 0
for song in os.listdir(Songs_path):
    if not song.endswith('.mp3'):
        os.remove(os.path.join(Songs_path, song))
        k += 1


print(f"检索完成，共删除了{k:>2}个文件")



